#include <stdio.h>//求∏
int main(){
    int i,g=1;
    double sum=0;
    for(i=1;i<=1e8;i+=2){
        sum+=g*(1.0/i);//注意数据类型
        g*=-1;
    }
    printf("%.8f",sum*4);
    return 0;
}
